package com.crl.module.imvc
{
	import flash.display.DisplayObject;
	
	public class AbstractController implements IController
	{
		private var _view:DisplayObject;
		private var _model:Object
		public function AbstractController()
		{
		}
		
		public function set model(value:Object):void
		{
			if(_model){
				clearModel();
			}
			this._model=value;
			//subclass todo other;
		}
		
		public function get model():Object
		{
			return _model;
		}
		
		public function set view(value:DisplayObject):void
		{
			if(_view){
				clearView();
			}
			this._view=value;
			//subclass todo other;
		}
		
		public function get view():DisplayObject
		{
			return _view;
		}
		
		
		protected function clearView():void{
			//todo override
		}
		protected function clearModel():void{
			//todo override
		}
	}
}